//
//  HomeTableViewCell.m
//  HLZhiHuDaily
//
//  Created by 胡林 on 16/3/2.
//  Copyright © 2016年 胡林. All rights reserved.
//

#import "HomeTableViewCell.h"

@implementation HomeTableViewCell
-(void)setStoryModel:(StoryModel *)storyModel{
    //赋值标题
    self.titlela.text = storyModel.title;
    if (storyModel.images == nil) {
        _imaViewWid.constant = 0;
    }else{//图片
        NSString * imageUrl =[storyModel.images firstObject];
        [self.imageView sd_setImageWithURL:[NSURL URLWithString:imageUrl]];
    }
    if (storyModel.isMultipic) {
        if (self.wareImageView.image == nil) {
            self.wareImageView.image = [UIImage imageNamed:@"Home_Morepic"];
        }self.wareImageView.hidden = NO;
    }else{
        self.wareImageView.hidden = YES;
    }
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
